Upgrade pagination for crud-generator