Added pagination to all pages.