refactoring to ruby-version
fixing authentication presenter window being hidden after application didBecomeActive.