Add pagination to index view