finish the index page