added the eventManager, currently only looks for window events