A very simple and useful pager boilerplate