formatting the main page