finishing the index page