           (aset el "className" "tooltip top fade in"))))))
 
 (defn render-graphic
-  [{:keys [dispatch!
-           project-data
-           selected-entry] :as state}]
+  [dispatch! project-data selected-date selected-entry-id]
   ;(log "project-data %o" project-data)
-  (when (seq project-data)
-    (let [svg (render-svg
-                dispatch!
-                (:selected-date project-data)
-                (init-data (:data project-data))
-                #(dispatch! (actions/change-entry-page-date %))
-                {:selected-entry selected-entry})
-
-          html (dom/div
-                 nil
+  (let [svg (render-svg
+              dispatch!
+              selected-date
+              (init-data project-data)
+              #(dispatch! (actions/change-entry-page-date %))
+              {:selected-entry selected-entry-id})
+
+        html (dom/div
+               nil
+               (dom/div
+                 #js {:className "row"}
                  (dom/div
-                   #js {:className "row"}
-                   (dom/div
-                     #js {:className "col-md-12"}
-                     (render-change-date-btns state))
-                   (dom/div
-                     #js {:id "activity-svg-container"}
-                     svg)))]
-      html)))
+                   #js {:className "col-md-12"}
+                   (render-change-date-btns dispatch! selected-date))
+                 (dom/div
+                   #js {:id "activity-svg-container"}
+                   svg)))]
+    html))
 
 
 (defn render-html [state owner]


            editing-entry-id (state/form-get-editing-entry-id form)]
        (render-graphic
          {:dispatch! (:dispatch! state)
           :selected-entry editing-entry-id
           :project-data {:data (state/entries-add-form-entry @entries @form)
                          :selected-date (state/form-selected-date form)}})))))

(defn render-tooltip
  [state owner]

            ;(log "draw-result" (:els draw-result))
            ;(concat (:els grid) (:els draw-result)))))))

(defn render-change-date-btns [dispatch! selected-date]
  (let [on-change-date #(dispatch! (actions/change-entry-page-date %))
        selected-date (.parse LocalDate selected-date)]
    (dom/div
      #js {:className "pull-right btn-group"}
      (dom/button
