added pagination to the bottom of the index page