     [bootstrap/glyph {:glyph :plus}] " Add to trolley"]])
 
 (defn select-item!
-  [trolley-state item]
+  [search-state trolley-state item]
   (let [region (:region @region-state)]
     (GET "/ikea/product"
          {:params {:region (:code region)

                   :product-context (:product-context item)
                   :product-id (:id item)}
          :handler (fn [resp]
                     (swap! trolley-state assoc ::selected-item (assoc item :packages resp)))})))

(defn item-search
  [trolley-state]

              :item-class "typeahead-item"
              :highlight-class "highlighted"
              :result-fn item-preview
              :choice-fn (partial select-item! search-state trolley-state)}]
       search-state])))

(defn trolley-list-contents
