       (let [actions (om/get-shared owner :actions)]
         (dom/div {:class "col-sm-6 component"}
                  (obb/button-group {:justified? true}
-                                   (obb/button-group {} (obb/button { :bs-style "primary" :on-click (fn [] (put! actions {:type "enter-payment"})) } "Enter Payment"))
-                                   (obb/button-group {} (obb/button { :bs-style "primary" :on-click (fn [] (put! actions {:type "view-history"})) } "View History"))))))))
+                                   (obb/button-group {} (obb/button { :bs-style "primary" :on-click (fn [] (put! actions {:type :enter-payment})) } "Enter Payment"))
+                                   (obb/button-group {} (obb/button { :bs-style "primary" :on-click (fn [] (put! actions {:type :view-history})) } "View History"))))))))
 
 (defn running-total [app owner]
   (reify om/IRender

(enable-console-print!)

(def app-state (atom {
                      :state "enter-payment"
                      :start-amount 524.15
                      :previous-payments [
                                          {:when "yesterday"

        (om/build running-total app)
        (om/build button-bar app)
        (case (:state app)
          :enter-payment (om/build enter-payment app)
          :view-history (om/build view-history app)))))) 

(def actions (chan))

(go (loop []
      (let [action (<! actions)]
        (case (:type action)
          :enter-payment (swap! app-state assoc :state :enter-payment)
          :view-history (swap! app-state assoc :state :view-history)
          :add-payment (.log js/console "add"))
        (recur))))

(om/root
