Implement main pager