save button now writes the grid to a csv file