Added EventHandlers to Window class.