   (if (= status :open) 0 1))
 
 (defui TodoListUI
-  static om/IQuery
-  (query [this]
-         [{:tudu/items (om/get-query TodoItemUI)}])
   Object
   (render [this]
-          (let [{:keys [tudu/items]} (om/props this)
-                tui-cprops {:close-item #(close-item reconciler %)}]
+          (let [{:keys [tudu/items]} (om/props this)]
             (dom/div #js {:className "todo-list-items"}
-                     (map #(todo-item-ui (om/computed % tui-cprops))
+                     (map todo-item-ui
                          (sort-by (juxt status-to-order :id) items))))))
 
 (def todo-list-ui (om/factory TodoListUI))

(defui UI
  static om/IQuery
  (query [this]
         (vec (concat (om/get-query TodoListUI)
                      (om/get-query NewTodoItemUI))))
  Object
  (render [this]
          (let [props (om/props this)]
            (dom/div nil
                     (new-todo-item-ui props)
                     (todo-list-ui props)))))

(defmulti read om/dispatch)

                            :tudu.item/editing :tudu/items]))

(defui NewTodoItemUI
  Object
  (render [this]
          (let [{:keys [tudu.item/editing]} (om/props this)
                {:keys [title]} editing
                {:keys [create-task on-title-change]} (om/get-computed this)]
            (dom/div #js {:className "new-todo-item-form"}
                      (dom/div #js {:className "form-group"}
                               (dom/label nil "Task")
                               (dom/input #js {:value title
                                               :onChange on-title-change}))
                      (dom/button #js {:className "new-todo-item-create"
                                       :onClick #(create-task editing)}
                                  "Create")))))

(def new-todo-item-ui (om/factory NewTodoItemUI))
