new function AlertDialog

Signed-off-by: rayrayy <ray61503@hotmail.com>