added managing/unmanaging of windows