updating views to do correct thing for file upload