correction of csv show and general refactoring