Use create() function to create the dialog.