Added callback and style update onConnecting