Add generic confirm dialog code