init dialog component