adds option to export as .csv to scans#index