move temporarily code from Xive Apps to template config file, change the way NTemplateHelper works