moved getting name of xml to main window