Added new option to download CSV file directly without showing CSV Export button

Added new option to download CSV file directly without showing CSV Export button.Also fixed the missing semicolon missing in previous pull request #1306