                                                         :summary summary
                                                         :date-time date-time
                                                         :notes notes)))
-                               (om/set-state! component :editing? false))}}))
+                               (om/set-state! component :editing? false))
+                    :on-cancel (fn []
+                                 (om/set-state! component :editing? false))}}))
         (dom/div #js {:style #js {:marginTop "2em"}}
           (dom/button #js {:className "btn btn-primary"
                            :onClick (fn [e]

                                    (.preventDefault e)
                                    (when-let [on-save (:on-save options)]
                                      (on-save (:summary state) (:date-time state) (:notes state))))}
          "Save")))))

(defn item-view [cursor component options]
  (reify

                                      {:summary summary
                                       :date-time date-time
                                       :notes notes})))
                                 (om/set-state! component :editing? false))
                      :on-cancel (fn []
                                   (om/set-state! component :editing? false))}})))))))

(defn app-container [cursor component]
  (reify
