Getting logged off and editor in new window