refactor pagination helper
basic feature specs
add note about helper