Working pager and better url helper