Add pagination to the toolbar for infinite scroll