   [templates wombats]
   (re-frame/dispatch [:simulator/initialized true])
   (ws/send-message :connect-to-simulator 
-                   {:simulator-template-id (:simulator-template/id (first templates))
-                    :wombat-id (:wombat/id (first wombats))}))
+                   {:simulator-template-id (:simulator-template/id (first @templates))
+                    :wombat-id (:wombat/id (first @wombats))}))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Render Methods

  [:div "OUTPUT"])

(defn- render-tabbed-container [state]
  #_(prn state)
  #_(js/console.log (or (get-player-code state) ""))
  [tabbed-container {:tabs [{:label "CODE"
                             :markup (render-code-tab state)}
                            {:label "OUTPUT"

  (re-frame/dispatch [:simulator/update-code evt.target.value]))

(defn- on-step-click! [evt state]
  (ws/send-message :process-simulation-frame {:game-state @state}))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Helper methods
