back button issue with onConnected