fix  for start /stop connection button to always work and display correctly