 
   override func viewDidLoad() {
     super.viewDidLoad()
+    self.view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(DeviceViewController.dismissKeyboard)))
     self.manager.delegate = self
     self.updateView()
   }

        self.manager.data.name = nameText
      }
    }

    self.manager.save()

  }


  // MARK: - Actions


  @IBAction func saveDevice(_ sender: Any) {

    if let nameText = self.nameField.text {
