         self.changelabels()
     }
 
+    override func viewDidDisappear() {
+        super.viewDidDisappear()
+        self.diddissappear = true
+        
+    }
+
     private func initcombox(combobox: NSComboBox, index: Int) {
         combobox.removeAllItems()
         combobox.addItems(withObjectValues: self.comboBoxValues)
         combobox.selectItem(at: index)
     }
 
-    private func setFields() {
+    private func resetinputfields() {
         self.localCatalog.stringValue = ""
         self.offsiteCatalog.stringValue = ""
         self.offsiteUsername.stringValue = ""

        globalMainQueue.async(execute: { () -> Void in
            self.addtable.reloadData()
        })
        self.setFields()
    }
}


        self.newconfigurations = NewConfigurations()
        globalMainQueue.async { () -> Void in
            self.addtable.reloadData()
            self.resetinputfields()
        }
    }

