added update to controller for csv/json