[ui] fixed event handlers for cloned dialogs