paging in the main table now works