added Event() to window class