Removed resource manager and window from the global scope