cleaning up pagination class a bit