dialog reimplemented using AlertDialog (instead of DialogFragment)