use dialogs class to display dialogs