implemented Export type dialog chooser, added export to XML