    (fn [{:keys [state props]}]
      [:div {}
       (cond
-        (:show-import-mc-modal? @state) [ConfigurationImportForm {:selected-method-config (:selected-method-config @state)
-                                                                  :workspace-id (:workspace-id props)
-                                                                  :on-back
-                                                                  (fn []
-                                                                    (swap! state dissoc
-                                                                      :show-import-mc-modal?
-                                                                      :selected-method-config))
-                                                                  :on-import (fn [& args]
-                                                                               (swap! state dissoc :show-import-mc-modal?)
-                                                                               (apply (:on-import props) args))}]
-        (:loaded-import-confs? @state) [ConfigurationsTable {:method-configs (:method-configs @state)
-                                                             :on-config-selected (fn [config]
-                                                                                   (swap! state assoc
-                                                                                     :selected-method-config config
-                                                                                     :show-import-mc-modal? true))}]
+        (:selected-method-config @state)
+        [ConfigurationImportForm {:selected-method-config (:selected-method-config @state)
+                                  :workspace-id (:workspace-id props)
+                                  :on-back #(swap! state dissoc :selected-method-config)
+                                  :on-import #((:on-import props) %)}]
+        (:method-configs @state)
+        [ConfigurationsTable {:method-configs (:method-configs @state)
+                              :on-config-selected #(swap! state assoc :selected-method-config %)}]
         (:error-message @state) (style/create-server-error-message (:error-message @state))
         :else [comps/Spinner {:text "Loading configurations for import..."}])])
    :component-did-mount
    (fn [{:keys [state]}]
      (utils/call-ajax-orch "/configurations"
        {:on-success (fn [{:keys [parsed-response]}]
-                      (swap! state assoc :loaded-import-confs? true :method-configs parsed-response))
+                      (swap! state assoc :method-configs parsed-response))
         :on-failure (fn [{:keys [status-text]}]
                       (swap! state assoc :error-message status-text))
         :mock-data (create-mock-methodconfs-import)}))})

        on-import (:on-import props)]
    [comps/Button
     {:text "Import"
      :onClick (fn []
                 (let [dest-conf-name (-> (@refs "destinationName") .getDOMNode .-value)
                       dest-conf-namespace (-> (@refs "destinationNamespace") .getDOMNode .-value)
                       post-data (create-post-data
                                   selected-conf-name
                                   selected-conf-namespace
                                   selected-conf-snapshot-id
                                   dest-conf-name
                                   dest-conf-namespace)]
                   (utils/ajax-orch
                     (paths/copy-method-config-to-workspace-path workspace-id)
                     {:headers {"Content-Type" "application/json"}
                      :canned-response {:responseText
                                        (utils/->json-string (create-mock-methodconfs-import))
                                        :status 200
                                        :delay-ms (rand-int 2000)}
                      :method :post
                      :data (utils/->json-string post-data)
                      :on-done (fn [{:keys [success? xhr]}]
                                 (if success?
                                   (on-import {"name" dest-conf-name "namespace" dest-conf-namespace})
                                   (js/alert (str "Import Error: " (.-responseText xhr)))))})))}]))


(react/defc ConfigurationImportForm

          (create-formatted-label-textfield k v))
        (render-import-button props refs)
        [:span {:style {:marginLeft "0.5em"}}
         [comps/Button {:text "Back" :onClick #((:on-back props))}]]]))})

(react/defc ConfigurationsTable
  {:render
