added switch window