disable paging buttons when appropriate