better pagers
fix pagination for end case