   
   @IBAction func enablePasswordValueChanged(sender: AnyObject) {
     let type: PassLockType = (sender as! UISwitch).on ? .SetPassword : .RemovePassword
+    (sender as! UISwitch).on = !(sender as! UISwitch).on
     let password = NSUserDefaults.standardUserDefaults().objectForKey(UserDefaults.passwordKey) as? String
     let config = PassLockConfiguration(passLockType: type, initialPassword: password)
     let controller = PassLockViewController.instantiateViewController(configration: config)

      navigationController?.popViewControllerAnimated(true)
    case .Failure:
      break
    }
  }
  

  }

  override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
    switch (indexPath.section, indexPath.row) {
    case (0, 1):
      let password = NSUserDefaults.standardUserDefaults().objectForKey(UserDefaults.passwordKey) as? String
      let config = PassLockConfiguration(passLockType: .ChangePassword, initialPassword: password)
      let controller = PassLockViewController.instantiateViewController(configration: config)
      controller.delegate = self
      navigationController?.pushViewController(controller, animated: true)
    default:
      break
    }
