Added openFile function to open a new Xml file and configurate interface from it