add pagination to all pages