make dialog a service