only display pager when needed