             [reagent-search.solr :as solr]
             [reagent-search.wiki :as wiki]))
 
+(enable-console-print!)
+
 ;;; preview panel
 (defn- handle-preview-item
   "gets summary preview for selected item from wiki"
   [chan-preview ref-title ref-content]
-  )
+  (go-loop
+   []
+   (let [term (<! chan-preview)]
+     (reset! ref-title term))
+   (recur)))
 
 ;; pass in publish que
 (defn- preview-component
   "renders preview panel"
-  [pub-q chan-log]
+  [chan-preview chan-log]
   (let [title (atom "my title here") #_(atom nil)
-        content (atom "my content here") #_(atom nil)
-        chan-preview (chan 1)
-        #_(sub pub-q 1 chan-preview)]
+        content (atom "my content here") #_(atom nil)]
     (handle-preview-item chan-preview title content)
     (fn []
       (if-not (nil? @title)

  1. logging selected item
  2. resetting the text input value
  3. removing the autocomplete panel
  4. logs the selected component"
  [chan-selecteditems ref-items ref-textvalue chan-log]
  (go-loop
   []

          :on-change #(put! chan-textvalue (-> % .-target .-value))
          :on-key-up #(put! chan-keys (-> % .-which))}]
        [:span.input-group-addon.glyphicon.glyphicon-search]
        [autocomplete-component (:autocomplete-size props) autocomplete-items textvalue chan-selecteditems chan-focus chan-current-suggestion chan-log]]
       [:div.top-space200
        [preview-component chan-current-suggestion chan-log]]])))

;; how to model behavior of search results?
;; typeahead component sends search query message to search-query channel
