added function call for upload button