Add cancel button delegate.