activate window events