Wrok on dialog element