Small update in SubWindow's function