File viewing functionality fully implemented