Refactored windowmanager into a static object