add event listener for upload complete