change the view of the main page