use to_spreadsheet gem to download the report as excel document