     func userLoggedOut(notification: NSNotification) {
         let authToken = AuthToken()
         authToken.reset()
-        self.dismissViewControllerAnimated(true, completion: nil)
+        UIApplication.sharedApplication().keyWindow!.rootViewController = self
     }
 
     func systemLoggedOut(notification: NSNotification) {

        profileService.loadCurrentUser({ (user, responseConfig) in
            var vc = ElloTabBarController.instantiateFromStoryboard()
            vc.setProfileData(user, responseConfig: responseConfig)
            self.presentViewController(vc, animated: true, completion: nil)
        }, failure: { error in
            self.failedToLoadCurrentUser()
        })


    @IBAction func signInTapped(sender: ElloButton) {
        let signInController = SignInViewController()
        let window = self.view.window!
        self.presentViewController(signInController, animated:true, completion: {
            window.rootViewController = signInController
        })
    }

    @IBAction func signUpTapped(sender: ElloButton) {
