create the main page, side bar and profile page