Change the pagination system

Rely on arguments rather than URL construct.