Add window switching.
Mock login on local environments.