putting stuff in onConnected