file upload and view function added