Redesigned UI behavior during subwindows closing