format index page