start of event system, window working