close all but selected internal window function added
merged, there was a conflict because one dialog had a parent and another a null parent, left it null