Simplify the alert dialog code