Adding 2 dialog inherit from Basedialog.