     
     @IBAction func transmitBeaconDidChange(_ sender: UISwitch)
     {
-        print("Transmit switch did change: \(transmitBeaconSwitch.isOn)")
+        print("Transmit switch did change: \(sender.isOn)")
+        saveBeaconSwitch(isOn: sender.isOn)
     }
     
     
     func textFieldDidChange(sender : AnyObject) {
         guard let notification = sender as? NSNotification,
-            let textFieldChanged = notification.object as? UITextField,
-            textFieldChanged == self.transmitBeaconUUID else
+            let textFieldChanged = notification.object as? UITextField else
         {
                 return
         }
-        if let uuidString = transmitBeaconUUID.text
+        if let textString = textFieldChanged.text
         {
-            print("UUID changed: \(uuidString)")
-            if isValidUUID(string: uuidString)
+            print("text changed = \(textString)")
+            switch textFieldChanged
             {
-                print("Is valid UUID")
+                case self.transmitBeaconUUID:
+                    print("UUID changed")
+                    saveBeaconUUID(string: textString)
+                    if isValidUUID(string: textString)
+                    {
+                        print("Is valid UUID")
+                        transmitBeaconSwitch.isOn = true
+                    }
+                    break
+                case self.transmitBeaconMajor:
+                    print("major changed")
+                    saveBeaconMajor(string: textString)
+                    break
+                case self.transmitBeaconMinor:
+                    print("minor changed")
+                    saveBeaconMinor(string: textString)
+                    break
+                default:
+                    print("unknown text field")
+                    break
             }
         }
     }

    @IBOutlet weak var transmitBeaconUUID: VSTextField!
    @IBOutlet weak var transmitBeaconMajor: UITextField!
    @IBOutlet weak var transmitBeaconMinor: UITextField!
    
    fileprivate let swipeInteractionController = InteractiveTransition()
    var screenEdgeRecognizer: UIScreenEdgePanGestureRecognizer!

    override func viewDidAppear(_ animated: Bool)
    {
        registerForNotifications()
        initializeDisplayValues()
    }
    
    
