dev the dialog component.