adapted to handle IConfirmation and show OK/Cancel