added support for the custom template flag in the editor. Disabled changing of the template for prepared and running elements.