Added functionality to preserve event handlers in clone. This allows con...

Added functionality to preserve event handlers when menu items are cloned. This allows controls such as forms, inputs etc to be added to the menu.