                                                      :value (int (.. % -target -value)))}]
                      [:span max]))]
                  [:div
-                  [:span (if (= 0 new-total) "Free!" (str selected-containers " for $" new-total "/month"))]
+                  [:input {:type "text" :value selected-containers
+                           :on-change #(utils/edit-input owner state/selected-containers-path %
+                                                         :value (int (.. % -target -value)))}]
+                  [:span "containers for " (if (= 0 new-total) "Free!" (str "$" new-total "/month"))]
                   (when (not (= new-total old-total))
                     [:span.strikeout (str "$" old-total "/month")])
-                  (when (plan-model/grandfathered? plan)
+                  (when (pm/grandfathered? plan)
                     [:span.grandfather
                      "(grandfathered"
                      [:i.fa.fa-question-circle#grandfathered-tooltip-hack

           [:div.loading-spinner common/spinner]

           [:div#billing.plans.pricing.row-fluid
            (when (plan-model/trial? plan)
              (plans-trial-notification plan org-name owner))
            (when (plan-model/piggieback? plan org-name)
              (plans-piggieback-plan-notification plan org-name))
            (om/build plans-component/plans app)
            (shared/customers-trust)
            (om/build plans-component/pricing-features app)
            plans-component/pricing-faq]))))))

(defn containers [app owner]
  (reify
    ;; I stole the stateful "did we load stripe checkout code" stuff
    ;; from the billing-info component; is there some nice way to
    ;; abstract it out?
    om/IInitState
    (init-state [_]

                            {:page :users :text "Users"}])
                [:li.nav-header "Plan"]
                (when plan
                  (if (pm/can-edit-plan? plan org-name)
                    (let [links [{:page :containers :text "Adjust containers"}
                                 {:page :organizations :text "Organizations"}]
                          links (if (pm/paid? plan)
                                  (into links [{:page :billing :text "Billing info"}
                                               {:page :cancel :text "Cancel"}])
                                  links)]
