add dialog sample