disable buttons when there are zero connections