 ; END timer-top
 
 ; START timer-controls
-(defn timer-controls [on _]
+(defn timer-controls [{:keys [on] :as cursor} _]
   (reify
     om/IRender
     (render [_]

    (render [_]
      (dom/div
        #js {:className "timer-middle"}
        (om/build timer-controls (:on cursor))
        (om/build timer-view cursor)))))
; END timer-middle


                                   (dom/i #js {:className "icon-stop"}))))
        ;; Reset button
        (dom/div #js {:className "reset-control-outer control-outer"}
                 (dom/div #js {:className "control-inner"
                               :onClick #(when (not (.valueOf on))
                                           (om/transact!
                                             cursor
                                             (fn [c] (into c (default-state)))))}
                          (dom/div #js {:className "control-icon"}
                                   (dom/i #js {:className "icon-refresh"}))))))))
; END timer-controls
