Thanks for helping.
I tested your example, it also adds the hidden content to the body and not to the content element.
http://postimg.org/image/qd76h5hrn/when you have a small page with a couple of controls, the hidden elements get removed from the body before the next page loads, however if the pages you are loading contain a lot of ajax-loaded comboboxes, trees and menus, then the old elements do not get removed before the new page starts to load it's elements.
If the new page happens to have a element id the same as the old page then strange things happen, such as the previous screen's controls override the new screen controls.
I believe that the design is such that all hidden elements are appended to the <body> tag, is it possible to add the ability to override the target element with another element ?
Thanks