add dialog for editting segment