remove unnecessary reference to dialog element