change main page view upon login