Changing connection button state