doing the index page