CSV view now working for encoding and displaying CSV files, Template bug fix