          :on-toggle-all (dispatch :toggle-all)
 
          [:on-start-editing id] (dispatch [:start-editing id])
+         [:on-update-todo id val] (dispatch [:update-todo id val])
          [:on-stop-editing id] (dispatch [:stop-editing id])
          [:on-cancel-editing id] (dispatch [:cancel-editing id])
-         [:on-update-todo id val] (dispatch [:update-todo id val])
 
          [:on-remove id] (dispatch [:remove id])
 

         (-> model
             (-update-todos #(assoc % :editing? (= (:id %) id)))
             (-update-todo id #(assoc % :original-title (:title %))))

         [:stop-editing id]
         (let [title (-> (-find-todo model id)

         (-update-todo model id #(assoc % :editing? false
                                          :title (:original-title %)
                                          :original-title ""))

         [:remove id]
         (-remove-todo model id)
