Add export feature to CSV and XLS