clean up csv parsing
refactored json2csv changed download to button