removed redundant pointers in window manager class.