Add confirmation to cancel button