Renamed event_listener to window_listener. refactored the event forward declarations