remove the window from groups instead