Triger cancel and ok event from confirm dialog