generalized alertdialog.