Pagination2

@adrianotadao this is not nice: D, refactor?