   "renders the autocomplete component given a list of items to display
   and a selected item channel
   the number of items rendered is limited to size items"
-  [size itemsref textvalue chan-selecteditems chan-focus chan-log]
+  [size itemsref textvalue chan-selecteditems chan-focus chan-current-suggestion chan-log]
   (let [ref-focus-item (atom -1)]
     (handle-autocompleteitemselected chan-selecteditems itemsref textvalue chan-log)
     (handle-autocomplete-focus chan-focus itemsref ref-focus-item)

            [reagent-search.solr :as solr]
            [reagent-search.wiki :as wiki]))

;;; preview panel
(defn- handle-preview-item
  "gets summary preview for selected item from wiki"
  [chan-preview ref-title ref-content]
  )

;; pass in publish que
(defn- preview-component
  "renders preview panel"
  [pub-q 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)]
    (handle-preview-item chan-preview title content)
    (fn []
      (if-not (nil? @title)

;;; autocomplete panel
(defn- autocomplete-item
  "renders a single autocomplete item in list"
  [chan-selecteditems chan-current-suggestion item focus-item]
  [:li {:on-focus #(put! chan-current-suggestion item)}
   [:a {
        :href ""
        :on-click #(put! chan-selecteditems item)}
