add_window modification