hide pager when not needed