Changed download csv to generate csv. It now opens a new tab where it displays the text that would be in the csv file so that the user can copy and paste it.