add pagination helper methods.