updating files with json respond_to