hopefully solve the problem where the logout is happening on a different window