add downloadCsv method