         self.dismissViewControllerAnimated(true, completion: nil)
         self.passwordField.resignFirstResponder()
         
-        nc.postNotificationName("settingsNotUpdated", object: config)
+        nc.postNotificationName("settingsCancelled", object: config)
     }
     
     

    
    
    @IBAction func handleDarkThemeChange(sender: UISwitch) {
        println("dark theme toggle changed: \(sender.on)")
        
        config.setBool(sender.on, forKey: "useDarkTheme")
        
        if (sender.on == true) {
            config.setBool(false, forKey: "useAutoTheme")
            themeAutoSwitch.setOn(false, animated: true)
        }
    }
    
    @IBAction func handleAutoThemeChange(sender: UISwitch) {
        println("auto theme toggle changed: \(sender.on)")
        
        // auto theme and dark theme are mutually exclusive
        config.setBool(sender.on, forKey: "useAutoTheme")
        
        if (sender.on == true) {
            config.setBool(false, forKey: "useDarkTheme")
            darkThemeSwitch.setOn(false, animated: true)
        }
    }
    
    @IBAction func handleShowPasswordChange(sender: UISwitch) {
        println("show password toggle changed: \(sender.on)")
        
        passwordField.secureTextEntry = !sender.on
        config.setBool(sender.on, forKey: "showPassword")
    }

        
        if let autoOn = config.valueForKey("useAutoTheme") as? Bool {
            themeAutoSwitch.on = autoOn
        }
        
        passwordField.secureTextEntry = !showPasswordSwitch.on
