Added code to saveFile method to be possible to save editable fields in an xml