       (do
          (def new-defn-promise (.save new-defn (clj->js defn-data)))
          (.then new-defn-promise (fn [defn]
-                              (js/console.log "definition saved: " defn)
-                              (swap! app-atom assoc :defn-obj defn)))
+                                   (swap! app-atom assoc :defn-obj defn)))
          (.fail new-defn-promise (fn [err]
-                                   (js/console.error err.message)
                                    (js/alert "Something went wrong :/. Please try again.")))))))
 
 

        (.set defn-obj "authorCountry" country)
        (def save-defn-promise (.save defn-obj))
        (.then save-defn-promise (fn [evt]
                                   (js/console.log "saved xtra data")
                                   (set! js/window.location.href "/thankyou")))
        (.fail save-defn-promise (fn [err]
                                 (js/console.error err)))))))

(defn get-defn [idx]
  (js/Parse.Cloud.run

             :max-length 4
             :placeholder "Enter Year (YYYY)"
             :on-change (fn [evt]
                          (swap! app-atom assoc :year (js/parseInt evt.target.value)))}]
    [:a {:class "button formToggle"
         :on-click #(swap! app-atom assoc :defn-form-mode "default")} "Add Your Own Definition"]
