adding pagination to the items list