Add switch window helper method