Fix paging and pagination to work with client side filtering

For #2211. For pagination, it changes the totalPages, might want to carry that over to paging by changing the total items as it is filtered.