added ability to export date search into csv file