Added handler for cancel upload