bug fix of the connect button not working and the indicator not updating