added remove method for openWindows
fixed problems with removing open Windows