Pagination working properly on refresh.