 (defn init-state
   [registry user repository]
   (reset! step-index 0)
-  (if (= "dockerhub" registry)
-    (settings/dockerhub-image-tags-handler user repository)
-    (settings/registry-image-tags-handler registry repository))
   (state/set-value {:registry    {:name registry
                                   :user user}
                     :repository  {:name repository

          :orientation "vertical"}
         (step-item 0 (settings/form false))
         (step-item 1 (ports/form-create))
         (step-item 2 (networks/form-create networks))
         (step-item 3 (mounts/form-create volumes))
         (step-item 4 (secrets/form-create secrets))
         (step-item 5 (variables/form-create))
         (step-item 6 (labels/form-create))
         (step-item 7 (deployment/form placement))))]))
(def init-state-mixin
  (mixin/init
    (fn [data]
      (let [registry (:registry data)
            repository (:repository data)
            user (:user data)]
        (init-state (:registry data)
                    (:user data)
                    (:repository data))
        (mounts/volumes-handler)
        (networks/networks-handler)
        (secrets/secrets-handler)
        (placement/placement-handler)
        (if (= "dockerhub" registry)
          (settings/dockerhub-tags-handler user repository)
          (settings/registry-tags-handler registry repository))))))

(rum/defc form < rum/reactive
                 init-state-mixin [_]
  (let [index (rum/react step-index)
        {:keys [isValid]} (state/react settings/cursor)]
    [:div
     [:div.form-panel
