setting up the main page