Prince | refactoring pagination