changed the "insertTemplate()" logic, now it calls the functions defined as fields in focusObj object. This shall make it much easier to adjust functionality in plug-ins if needed