       [:td [:img {:src recipe-avatar-url :class "img-thumbnail" :style {:max-width "150px"}}]]
       [:td recipe-name]
       [:td
-        [:button "Show"]
-        [:button "Edit"]
+        [:button {:onClick #(secretary/dispatch! (str "#/recipes/" recipe-id))} "View"]
         [:button {:onClick #(destroy-recipe recipe-id)} "Destroy"]]]))
 
 (defn home-page []

(def counter (atom 0))

(def recipes (atom []))

;; -------------------------
;; Forms Helpers

  (session/put! :current-page #'about-page)
  (swap! state assoc :page about-page))

(secretary/defroute "/recipe/new" []
  (session/put! :current-page #'new-recipe-page)
  (swap! state assoc :page new-recipe-page))

(secretary/defroute "/recipes/:id" [id query-params]
  (session/put! :current-page #'recipe-view-page)
  (swap! state assoc :page recipe-view-page)
  (swap! recipe assoc :id id))

;; -------------------------
;; History
