       [on-going-chat]
       [join-room-view])
 
-    (when @show-state?
-      [:div [:br] [:br] [:br] "STATE!!!!"
-       [:div "Messages: " (pr-str @messages)]])]])
+    [:div [:br] [:br] [:br]
+     "STATE!!!!"
+     [:div "Messages: " (pr-str @messages)]]]])
 
 (defn current-page []
   [:div [(session/get :current-page)]])
 
 ;; -------------------------
 ;; Routes
-
-(secretary/set-config! :prefix "#")
 
 (secretary/defroute "/" []
   (reset! chat-room nil)

;; -------------------------
;; History
;; must be called after routes have been defined
(defn hook-browser-navigation! []
  (doto (History.)
    (events/listen

            [reagent.core :as reagent]
            [reagent.session :as session]
            [secretary.core :as secretary :include-macros true]
            [re-frame.core :as rf :refer [dispatch
                                          dispatch-sync
                                          register-handler
                                          register-sub
                                          subscribe]]
            [matchbox.async :as ma]
            [matchbox.core :as m])
  (:require-macros [reagent.ratom :refer [reaction]]
                   [cljs.core.async.macros :refer [go go-loop]])
  (:import goog.History))

;; -- REPLACE with your own DB location ---------
(def firebase-io-root "https://shining-torch-2145.firebaseIO.com")
;; ----------------------------------------------

(def initial-state
  {:chat-room nil
   :messages []
   :username (str "Guest" (rand-int 100))})

(defonce chat-room (reagent/atom nil))

(defonce fb-messages (atom nil))
(defonce messages (reagent/atom []))

;; -- Firebase helpers ------

(defn bind-to-ratom [ratom ref & [korks]]
  (let [ch (ma/listen-to< ref korks :value)]
