formatting index page