Add pagination to the lists