                                                    (put! controls-ch [:container-parent-scroll]))))
                                   :scroll "handle_browser_scroll"
                                   :window-resize "realign_container_viewport"
-                                  :resize-sensor "height_changed"}
+                                  :resize-sensor "height_changed"
+                                  :class (str "selected_" (get-in build [:current-container-id] 0))}
            ;; XXX handle scrolling and resize sensor
            ;; probably have to replace resize sensor with something else
            (map (fn [container] (om/build container-view
-                                          {:container container
-                                           :build build
-                                           :controls-ch controls-ch}
+                                          container
                                           {:opts opts}))
                 containers)]])))))

            [frontend.models.container :as container-model]
            [frontend.models.build :as build-model]
            [frontend.components.common :as common]
            [frontend.utils :as utils]
            [om.core :as om :include-macros true]
            [sablono.core :as html :refer-macros [html]]
            [goog.string :as gstring]

                                (clj->js {"__html"
                                          (action-model/format-output action)})}]]])])]]]])))))

(defn container-view [container owner opts]
  (reify
    om/IRender
    (render [_]
      (let [container-id (container-model/id container)
            action-groups (group-by :type (:actions container))
            controls-ch (get-in opts [:comms :controls])]
        (html
         [:div.container-view {:style {:left (str (* 100 (:index container)) "%")}
                               :id (str "container_" (:index container))}
          (map (fn [[type actions]]
                 (list*
