         guard self.index != nil else { return }
         if let rclonehiddenID = self.configurationsrclone?.gethiddenID(index: self.rcloneindex!) {
             self.configurations!.setrcloneconnection(index: self.index!, rclonehiddenID: rclonehiddenID, rcloneprofile: rcloneprofilename)
+            self.updateview()
         }
     }
     
     @IBAction func delete(_ sender: NSButton) {
         guard self.index != nil else { return }
         self.configurations!.deletercloneconnection(index: self.index!)
+        self.updateview()
+        self.connectbutton.isEnabled = self.enableconnectionbutton()
+        self.deletebutton.isEnabled = self.enabledeletebutton()
     }
     
     @IBAction func selectprofile(_ sender: NSComboBox) {

        self.offsiteServer.stringValue = config.offsiteServer
        self.backupID.stringValue = config.backupID
        guard config.rclonehiddenID != nil else {
            self.rcloneID.stringValue = ""
            self.rcloneremotecatalog.stringValue = ""
            return

        self.configurationsrclone = ConfigurationsRclone(profile: self.rcloneprofilename)
        self.connectbutton.isEnabled = false
        self.deletebutton.isEnabled = false
        self.updateview()
    }

    override func viewDidLoad() {
