changed view depending on whether or not user is signed in