Pagination complete, covered pretty much all cases of pagination, except how to handle the ui when a pagination fails