paging and sorting and page state persistence put together