 (defui MainComponent
   static om/IQuery
   (query [_]
-    [{:app/selected-competition (into [:competition/name :competition/location
-                                       {:competition/panels [:adjudicator-panel/name
-                                                             {:adjudicator-panel/adjudicators
-                                                              [:adjudicator/id
-                                                               :adjudicator/name]}]}]
-                                      (concat (om/get-query ScheduleView)))}
+    [{:app/selected-competition
+      (into [:competition/name :competition/location
+             {:competition/classes (om/get-query ClassesView)}
+             {:competition/panels [:adjudicator-panel/name
+                                   {:adjudicator-panel/adjudicators
+                                    [:adjudicator/id
+                                     :adjudicator/name]}]}]
+            (concat (om/get-query ScheduleView)))}
      :app/status
      :app/selected-page
      {:app/selected-activities [:activity/id] }

            ))
        ))))

;<div class="dropdown">
;<button class="btn btn-default dropdown-toggle" type="button" id="menu1" data-toggle="dropdown">Tutorials
;<span class="caret"></span></button>
;<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
;<li role="presentation"><a role="menuitem" tabindex="-1" href="#">HTML</a></li>
;<li role="presentation"><a role="menuitem" tabindex="-1" href="#">CSS</a></li>
;<li role="presentation"><a role="menuitem" tabindex="-1" href="#">JavaScript</a></li>
;<li role="presentation" class="divider"></li>
;<li role="presentation"><a role="menuitem" tabindex="-1" href="#">About Us</a></li>
;</ul>
;</div>

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Clients View
(defui ClientsView

  Object
  (render
    [this]
    (let [make-btn-fn
          (fn [page-name page-key]
            (dom/button #js {:onClick
                             #(om/transact! this
                                            `[(app/select-page {:selected-page ~page-key})
                                              :app/selected-page])}
                        page-name))]
      (dom/div nil
        (apply dom/div #js {:className "nav"}
               (map (fn [[name key]] (make-btn-fn name key))
                    [["Home" :home]
                     ["Classes" :classes]
                     ["Time Schedule" :time-schedule]
                     ["Clients" :clients]]))))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Client Row
