             (js/alert e))))))
 
 
+
 (deftemplate topiqs "templates/topiqs.html"
   [app owner]
   {[:.list-group] (content (map #(topiq % app owner) (get-topiqs app)))

  [comment]
  {[:.comment-text] (content (:content comment))
   [:.comment-author] (content (:author comment))
   [:.comment-ts] (content (str (:ts comment)))})


(defsnippet topiq "templates/topiqs.html" [:.topiq]

     (fn [e]
       ;; will cleanup this mess and migrate some of it into view state
       (let [selected-entries (om/get-state owner :selected-entries)]
         (if (some #{(:id topiq)} selected-entries)
           (do
             (dommy/remove-class! (sel1 (str "#topiq-" (:id topiq))) :selected-entry)
