add dialog object to afterRenderDialog event