add pagination to index page