included the function to cancel an update