implemented downloading of csv for table results