Changed front-end csv code