handle pagination in datatable download utility