rendering uploaded files properly