find dialog element from event target.