Merging downloading & uploading of files into the UI