REFACTOR: windows window class and event window