optimize the index page