add a parameter to the UpdatePaginator function, to allow the pagination spot to be kept when updating the paginator