         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) {

        if let userConfiguration = storage.getUserconfiguration() {
            _ = RcloneUserconfiguration(userconfigRsyncOSX: userConfiguration)
        }
        self.configurationsrclone = ConfigurationsRclone(profile: self.rcloneprofilename)
    }

    override func viewDidAppear() {
        super.viewDidAppear()
        self.loadprofiles()
        self.index = self.index(viewcontroller: .vctabmain)
        self.getconfig()
        globalMainQueue.async(execute: { () -> Void in
            self.mainTableView.reloadData()

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

    override func viewDidLoad() {
