simulate alert dialog