update windows to use events