added service for the dialog component