   (move-dialog/append @selected-task-atom))
 
 (defn- render-toolbar-action
-  [text css-class icon function]
+  [selected-task text css-class icon function]
   [:div
    {:class (str "item " css-class)
-    :on-click function}
+    :on-click (when selected-task
+                function)}
    [:div.icon
     {:title text}
     [:i

   (doall (for [item items]
            ^{:key (:text item)}
            [render-toolbar-action
             (:text item)
             (:css-class item)
             (:icon item)

   (doall (for [item items]
            ^{:key (:text item)}
            [render-toolbar-action
             true
             (:text item)
             (:css-class item)
             (:icon item)
