           [:div.pure-u-1-3.sw
            [:div.pure-g
             [:label.pure-u.rep-text {:on-click #(if (= @rep-text "Rep")
-                                                (reset! rep-text "Distance")
-                                                (reset! rep-text "Rep"))
-                                     :title "Change between rep and distance"}
+                                                 (let [elements (array-seq (.getElementById js/document (str "rep-" id)))]
+                                                   (doseq [e elements]
+                                                     (set! (.-selected e) false))
+                                                   (reset! rep-text "Distance"))
+                                                 (let [elements (array-seq (.getElementById js/document (str "distance-" id)))]
+                                                   (doseq [e elements]
+                                                     (set! (.-selected e) false))
+                                                   (reset! rep-text "Rep")))
+                                     :title    "Change between rep and distance"}
              @rep-text]
             (let [txt @rep-text]
               (case txt
                 "Rep" [:div.pure-u.rep {:className " custom-select"}
-                       [:select.rep-select
+                       [:select {:className "rep-select"
+                                 :id (str "rep-" id)
+                                 :on-change #(let [x (.-value (.getElementById js/document (str "rep-" id)))]
+                                                         (print x))}
                         [:option "-"]
-                        [:option "1"]
-                        [:option "2"]
-                        [:option "3"]
-                        [:option "4"]
-                        [:option "5"]
-                        [:option "6"]
-                        [:option "7"]
-                        [:option "8"]
-                        [:option "9"]
-                        [:option "10"]
-                        [:option "15"]
-                        [:option "20"]
-                        [:option "25"]
-                        [:option "30"]
-                        [:option "40"]
-                        [:option "50"]
-                        [:option "60"]
-                        [:option "80"]
-                        [:option "100"]]]
+                        [:option 1]
+                        [:option 2]
+                        [:option 3]
+                        [:option 4]
+                        [:option 5]
+                        [:option 6]
+                        [:option 7]
+                        [:option 8]
+                        [:option 9]
+                        [:option 10]
+                        [:option 15]
+                        [:option 20]
+                        [:option 25]
+                        [:option 30]
+                        [:option 40]
+                        [:option 50]
+                        [:option 60]
+                        [:option 80]
+                        [:option 100]]]
                 "Distance" [:div.pure-u.rep {:className " custom-select"}
-                             [:select.distance-select
+                             [:select {:className "distance-select"
+                                       :id (str "distance-" id)
+                                       :on-change #(let [x (.-value (.getElementById js/document (str "distance-" id)))]
+                                                    (print x))}
                               [:option "-"]
                               [:option "10 m"]
                               [:option "20 m"]

       [: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"]]
       [: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")
                                                 (let [elements (array-seq (.getElementById js/document (str "set-" id)))]
                                                   (doseq [e elements]
                                                     (set! (.-selected e) false))
                                                   (reset! set-text "Duration"))
                                                 (let [elements (array-seq (.getElementById js/document (str "duration-" id)))]
                                                   (doseq [e elements]
                                                     (set! (.-selected e) false))
                                                   (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 {:className "set-select"
                                               :id (str "set-" id)
                                               :on-change #(let [x (.-value (.getElementById js/document (str "set-" id)))]
                                                            (print x))}
                                      [: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 {:className "duration-select"
                                      :id (str "duration-" id)
                                      :on-change #(let [x (.-value (.getElementById js/document (str "duration-" id)))]
                                                   (print x))}
                             [:option "-"]
                             [:option "5 s"]
                             [:option "10 s"]
