added virtual destructor to window manager