   (fn [thread]
     (let [thread-title (if (-> (:users thread) (count) (> 1))
                          (:title thread)
-                         (:nickname (->> (first (:users thread)) (find-user @friends-info))))]
-      [:a {:class "thread-item list-group-item"}
+                         (:nickname (->> (first (:users thread)) (find-user @friends-info))))
+          props-a (fn []
+                    {:id (str "thread-item-" (:tid thread)) :class "thread-item list-group-item"
+                     :on-click (fn [e]
+                                 (js/console.log "clicked thread: " (->> e
+                                                                      (.-currentTarget)
+                                                                      (.-id)
+                                                                      (re-find #"\d+"))))})]
+      [:a (props-a)
        [thread-avatar thread]
        [:div {:class "thread-item-body media-body"}
         [:small {:class "list-group-item-heading"} thread-title]]])))

    (r/create-class
      {:component-will-mount (fn [_]
                               (js/console.log "app component -- will mount")
                               (go-loop []
                                 (let [val (<! ch-in)]
                                   (js/console.log "client recv!")

(defn sidebar-friends-pane [sidebar-stats]
  (r/create-class
    {:component-will-mount (fn [_]
                             (js/console.log "sidebar friends pane -- will mount"))
     :component-did-mount (fn [_] (js/console.log "sidebar friends pane -- did mount"))
     :reagent-render (fn [sidebar-stats]
                       [:div {:id "sidebar-pane" :class "pane"}
