                [:div.tab-content
                 ;; stops
                 [:div.tab-wrapper
-                 [:div {:className (join " "
-                                         ["tab-pane" "fade" "side"
-                                          (when (= tab :stops)
-                                            "active in")])}
+                 [:div {:className (tab-class tab :stops)}
                   [:form.form-horizontal
                    [:fieldset
                     [:div.form-group

                  :onClick (fn [e]
                             (raise! owner [:side-panel-changed key])
                             (.preventDefault e))} label]]))))

(defn side-panel [panel owner]
  (reify

                     [:th "Lat/Lng"]]]
                   [:tbody]]]
                 ;; routes
                 [:div {:className (tab-class tab :routes)}
                  [:p "Routes panel"]]
                 ;; trips
                 [:div {:className (tab-class tab :trips)}
                  [:p "Trips panel"]]]]])))))
