closing of child windows fixed