        [:div.pure-g
         [:label.pure-u.pure-u-md-1-5]
         [:h1.pure-u.pure-u-md-3-5 title]
-        [:button.pure-u.pure-u-md-1-5 {:on-click #(set-element-values! "rep" 5)} "Fill in 5 reps"]]
+        [:button.pure-u.pure-u-md-1-5 {:on-click #(set-element-values! "rep-select" 5)} "Fill in 5 reps"]]
        [:div {:on-click #(handler-fn (reset! adding-description true))} description]
        (when @adding-description
          [text-edit-component {:class   "edit" :title description

          [:div.pure-u-1-3.se
           [:div.pure-g
            [:label.pure-u.set-text {:on-click #(if (= @set-text "Set")
                                                 (reset! set-text "Duration")
                                                 (reset! set-text "Set"))
                                     :title "Change between set and duration"}
             @set-text]
            (let [txt @set-text]
              (case txt
                "Set" [:div.pure-u.set {:className " custom-select"}
                                     [:select.set-select
                                      [:option "-"]
                                      [:option "1"]
                                      [:option "2"]
                                      [:option "3"]
                                      [:option "4"]
                                      [:option "5"]
                                      [:option "6"]
                                      [:option "7"]
                                      [:option "8"]
                                      [:option "9"]
                                      [:option "10"]]]
                "Duration" [:div.pure-u.duration {:className " custom-select"}
                            [:select.duration-select
                             [:option "-"]
                             [:option "5 s"]
                             [:option "10 s"]

    [movement.state :refer [movement-session handler-fn log-session]]))

(defonce m-counter (atom 0))
(defonce getting-templates
         (GET "templates" {:handler       #(session/put! :templates %)
                           :error-handler #(print "error retrieving templates.")}))

(defn equipment-symbol [equipment-name]
  (first (shuffle ["images/squat.png"
