             title]
           [:button.destroy
             {:on-click #(dispatch [:delete-todo id])}]]
-       (when @editing
-         [todo-input
-           {:class "edit"
-            :title title
-            :on-save #(dispatch [:save id %])
-            :on-stop #(reset! editing false)}])])))
-
-
-(defn footer
-  []
-  [:footer#info
-   [:p "Double-click to edit a todo"]])
+        (when @editing
+          [todo-input
+            {:class "edit"
+             :title title
+             :on-save #(dispatch [:save id %])
+             :on-stop #(reset! editing false)}])])))
 
 
 (defn task-list

          (when (seq @todos)
            [task-list])
          [footer-controls]]
        [footer]])))

  []
  (let [editing (reagent/atom false)]
    (fn [{:keys [id done title]}]
      [:li {:class (str (when done "completed ")
                        (when @editing "editing"))}
        [:div.view
          [:input.toggle
            {:type "checkbox"
