added pagination to all pages