 (register-handler
   :memory-edit-save
   (fn [app-state _]
-    (let [note   (get-in app-state [:note :current-note])
+    (let [note   (get-in app-state [:note :edit-note])
           memory (get-in app-state [:note :edit-memory])
           url    (str "/api/memory/" (:id memory) "/thought")]
       (PUT url {:params        {:thought note :refine_id (get-in app-state [:note :focus :id])}


(defn focused-thought []
  (let [focus (subscribe [:note :focus])]

    (if @focus
      [:div {:class "col-sm-10 col-sm-offset-1"}
       [:div {:class "panel panel-default"}

    ))


(defn thought-edit-box [note-id]
  (let [note (subscribe [:note note-id])]
    (fn []
      [:div {:class "form-group"}
       [focused-thought]
