Created window_handler