     @IBAction func logoutAction(sender: AnyObject) {
         smappeeController.logOut()
         serviceLocation = nil
+        serviceLocationInfo = nil
         actuator = nil
         updateButtonStates()
     }

        
        // Reference to self must happen after super.init call
        smappeeController.delegate = self
    }
    
    // MARK: SmappeeControllerDelegate method
    func loginWithCompletion(completion: (SmappeeCredentialsResult) -> Void) {
        loginCompletion = completion
        
        let loginViewController = self.storyboard?.instantiateViewControllerWithIdentifier("loginViewController") as? LoginViewController
        

    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        updateButtonStates()
    }
    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        if loginCompletion != nil {
            presentLoginUI()
        }
    }
    
    func updateButtonStates() {
