moved pagination helper to this gem