Call onConnected method