added changes to allow viewing of uploaded files