added button for xml to csv export and file chooser
use stringbuilder in saveCsvAsFile