make switch window fast