add download spreadsheet functionality