hiding pager when not needed