CSV Export changes as per karma restructuring

The export csv functionality is refactored as per new structure.
Fixed bugs related to missing links in the data