          (fn [evt]
            (.toggle (js/jQuery "nav"))))
 
-(dispatch-sync [:initialize-db])
+
 (restart)

  (mount-root)
  (dispatch-sync [:stop])
  (dispatch-sync [:start]))

(let [eventbus (tap eventbus-out (chan))]
  (go (loop [] 

(def eventbus-in (chan))
(def eventbus-out (mult eventbus-in))

(dispatch-sync [:initialize-db])

(defn render-player []
  (let [playmode (subscribe [:playmode])]   
    #(player/render (handlers/get-player @playmode))))

(defn mount-root []
  (reagent/render [ctl/control-panel eventbus-in
