             logoutButton.hidden = false
             newPerspective.hidden = false
             loginButton.hidden = true
+            signupButton.hidden = true
         } else {
             usernameText.text = ""
             logoutButton.hidden = true
             loginButton.hidden = false
             newPerspective.hidden = true
+            signupButton.hidden = false
         }
     }
     

    @IBOutlet weak var newPerspective: UIButton!
    
    @IBOutlet weak var loginButton: UIButton!
//    @IBOutlet weak var playback: UIButton!
    
    func displayUsername(){
        var currentUser = PFUser.currentUser()

        displayUsername()
    }
    
    @IBAction func gotoLogin(sender: UIButton) {
        let vc = self.storyboard?.instantiateViewControllerWithIdentifier("LoginVC") as LoginVC
        self.navigationController?.pushViewController(vc, animated: true)
    }
    
    @IBAction func signupTapped(sender: UIButton) {
        let vc = self.storyboard?.instantiateViewControllerWithIdentifier("SignupVC") as SignupVC
        self.navigationController?.pushViewController(vc, animated: true)
    }
    
    @IBAction func gotoPlayback(sender: UIButton) {
        let vc = self.storyboard?.instantiateViewControllerWithIdentifier("PlaybackVC") as PlaybackVC
        vc.perspectiveId = "CIXuizXrzZ"
        vc.playingCompletedPerspective = true
        self.navigationController?.pushViewController(vc, animated: true)
        println("Leaving DashboardVC, pushing PlaybackVC.")
