better toggling of table and CSV