Refactor pagination to separate file, add to top of second+ pages.