refactor ConfirmDialog