updated post-logout check (no more frame switch)