Fixed Connection Button text

Move changing the text to the onopen, onclose fucntions