added pagination to the list view