Update ConfirmDialog to not show in headless mode