                [comps/SidebarButton {:style :light :color :button-primary
                                      :text "Edit Configuration" :icon :edit
                                      :disabled? (when locked? "The workspace is locked")
-                                     :onClick #(swap! state assoc :editing? true :prev-snapshot-id snapshot-id)}]
+                                     :onClick (fn []
+                                                (swap! state assoc :editing? true :original-config loaded-config
+                                                                                  :original-inputs-outputs inputs-outputs)
+                                                (utils/log "LOADED CONFIG AT SAVING:  " loaded-config)
+                                                (utils/log "INPUTS OUTPUTS AT SAVING:  " inputs-outputs))}]
                [comps/SidebarButton {:style :light :color :exception-state :margin :top
                                      :text "Delete" :icon :delete
                                      :disabled? (when locked? "The workspace is locked")

     (this :load-agora-method))
   :load-agora-method
   (fn [{:keys [props state]} & [method-ref]]
     (let [{:keys [namespace name snapshotId]} (or method-ref props)]
       (endpoints/call-ajax-orch
        {:endpoint (endpoints/get-agora-method namespace name snapshotId)
         :headers utils/content-type=json
         :on-done (fn [{:keys [success? get-parsed-response status-text]}]
                    (if success?

        (create-section-header "Referenced Method")
        (create-section [MethodDetailsViewer
                         (merge {:ref "methodDetailsViewer"
                                 :methodName (:methodName methodRepoMethod)
                                 :methodNamespace (:methodNamespace methodRepoMethod)
                                 :methodVersion (:methodVersion methodRepoMethod)
                                 :onSnapshotIdChange #(this :load-new-method-template %)}
                                (utils/restructure config methods editing? wdl-parse-error))])
        (create-section-header "Root Entity Type")
