     (let [item-row (d/single-node (css/sel (str "#" row-id)))]
       (gestures/on-swipe [:left :right] item-row #(item-deleted row-id))
       (event/listen-once! (css/sel item-row "button[rel=delete-item]") :click #(item-deleted row-id))
+      (event/listen-once! (css/sel item-row "button[rel=edit-item]") :click #(item-edited row-id))
       (if (= :list (keyword (:state item)))
         (event/listen-once! (css/sel item-row "button[rel=complete]") :click #(completed-item row-id))
         (d/add-class! (css/sel item-row "button[rel=complete]") "btn-success")))))

  (d/set-value! item-name-field "")
  (d/set-value! item-qty-field 1))

(defn log-to-console [event o]
  (js/console.log event ": " o))



(def item-deleted (pubsub/publishize (fn [row-id] {:row-id row-id}) bus))

(def item-edited (pubsub/publishize (fn [row-id] {:row-id row-id}) bus))

(def basket-loaded (pubsub/publishize identity bus))

(defn add-item-to-list [the-list item]
