Saves settings to xml