add spinner for file uploading