                                 {:url (str "/search/" (:subs data))}))]
                   ;; XXX: what if there's no hit?
                   ;;(.setToken history (str "/items")) ;; XXX
-                  (om/transact! app :items (fn [_] data)) ;; search results
+                  (om/transact! app :items (fn [_] data))
                   )
                 
                 (recur))))))
     
     om/IRenderState
-    (render-state [_ {:keys [current-item event]}]
+    (render-state [_ {:keys [navigate event]}]
       (let [route (:route app)
-            opts {:opts {:current-item current-item
+            opts {:opts {:navigate navigate
                          :event event}}]
         ;; menu bar
         (dom/div nil

;; =============================================================================
;; Components

(defn item-view [item owner {:keys [current-item event]}]
  (reify
    om/IRender
    (render [_]

               (dom/h2 nil (:item/title item))
               (dom/br nil "")
               (link (str "#/" (:item/id item)) (:item/id item))
               (dom/br nil "")
               (dom/br nil "")
               (apply dom/div nil
                      (prepare-item (:item/text item)))))))

(defn item-add-view [item owner {:keys [navigate event]}]
  (reify
    om/IRenderState
    (render-state [_ state] ;; keys chan as etc?
      (let [opts {:navigate navigate
                  :event event}]
        (dom/div #js {:id "item-add-view"}
        (dom/div #js {:id "item-info"}
