getting the main page ready