new method for index page