Added functionality to preserve event handlers in clone. This allows controls to be added to the menu.