adds pagination to admin