Use the Dialog class