added functionality for viewing file uploads