change the index page code.