   (:require
     [dmohs.react :as react]
     clojure.string
-    [org.broadinstitute.firecloud-ui.utils :as utils]
     [org.broadinstitute.firecloud-ui.common :as common]
     [org.broadinstitute.firecloud-ui.common.icons :as icons]
     [org.broadinstitute.firecloud-ui.common.style :as style]
     [org.broadinstitute.firecloud-ui.common.table :as table]
-    [org.broadinstitute.firecloud-ui.common.components :as comps]))
+    [org.broadinstitute.firecloud-ui.common.components :as comps]
+    [org.broadinstitute.firecloud-ui.utils :as utils]))
+
+
+(defn create-path [workspaceNamespace workspaceName]
+  (str "/" workspaceNamespace "/"  workspaceName  "/methodconfigs/copyFromMethodRepo"))
+
+
+(defn create-post-data
+  [selected-conf
+   selected-conf-dest-name
+   selected-conf-dest-ns
+   dest-workspace-name
+   dest-workspace-namespace]
+  (let [destination-map
+        {"name" selected-conf-dest-name
+        "namespace" selected-conf-dest-ns
+        "workspaceName"
+        {"name" dest-workspace-namespace
+        "namespace" dest-workspace-name}}
+        param-map {"methodRepoNamespace" (get-in selected-conf
+                                           ["methodStoreMethod" "methodNamespace"])
+                   "methodRepoName" (get-in selected-conf
+                                      ["methodStoreMethod" "methodName"])
+                   "methodRepoSnapshotId" (get-in selected-conf
+                                            ["methodStoreMethod" "methodVersion"])
+                   "destination" destination-map}]
+    param-map))
 
 
 (defn- create-mock-methodconfs-import []

                         [:a
                          {:onClick
                           (fn []
                             (swap! state assoc
                               :selected-conf conf
                               :show-import-mc-modal? true)
                             (let [dest_name_elem (.getElementById js/document (name "dest_name_id"))
                                   method_config_prepopname ((:selected-conf @state) "name")
                                   dest_namespace_elem (.getElementById js/document
                                                         (name "dest_namespace_id"))
                                   method_config_ns_prepopname ((:selected-conf @state) "namespace")]
                               (set! (.-value dest_name_elem) method_config_prepopname)
                               (set! (.-value dest_namespace_elem) method_config_ns_prepopname)))
                           :href "javascript:;"
                           :style {:color
                                   (:button-blue style/colors) :textDecoration "none"}}
                          (conf "name")])}
                      {:header "Namespace" :starting-width 200}
                      {:header "Type" :starting-width 100}

      {:name (str "Configuration " (inc i))
       :namespace (rand-nth ["Broad" "nci" "public"])
       :rootEntityType "Task"
       :workspaceName {:namespace (str "ws-ns-" (inc i))
                       :name (str "ws-n-" (inc i))}
       :methodStoreMethod {:methodNamespace (str "ms-ns-" (inc i))
                           :methodName (str "ms-n-" (inc i))
                           :methodVersion (str "ms-v-" (inc i))}
       :methodStoreConfig {:methodConfigNamespace (str "msc-ns-" (inc i))
                           :methodConfigName (str "msc-n-" (inc i))
                           :methodConfigVersion (str "msc-v-" (inc i))}
       :inputs {"Input 1" "[some value]"
                "Input 2" "[some value]"}
       :outputs {"Output 1" "[some value]"
