implement paging
don't display pager if we only have 1 page