clean up pagination a bit