when cancel do not any actions call anonymous function