Added code to controller to handle automatic popup of login or create wallet