add overloaded method for showing an alert dialog