Added the DialogService class.