Switch window based on id