add dialog component