                                 "Submit"))))
 
 (defn main-content-view
-  [data]
+  [data owner]
   (dom/div nil
            (dom/div #js {:className "text-center"}
                     (get-in data [:layout :intro])

                                       (dom/i #js {:className "fa fa-comment"}))
                             (dom/input #js {:id        (lib/prefix-name "add-element")
                                             :className "form-control"
                                             :onChange  #(lib/update-state-item! :user :statement (fn [_] (-> % .-target .-value)))}))
                    (when (lib/get-selection)
                      (dom/div #js {:className "input-group"}
                               (dom/span #js {:className "input-group-addon"}

                          (logo #(om/set-state! owner :show (toggle-show show))))
                (dom/span nil (:dom-post data))))))

(defn sidebar-view [data owner]
  (reify om/IRender
    (render [_]
      (dom/div nil
               (logo #(sidebar/toggle!))
               (main-content-view data owner)
               (dom/h5 nil "Reference")
               (dom/div #js {:className "well well-sm"}
                        (get-in @lib/app-state [:layout :reference]))))))