disable useless buttons when connection changes state