move pagination to components