Add delegate to alert to manage cancel operations