properly disable connection when clicked on connect button while connecting
fix fatal error box never showing