reorganized initiating all template management
improved template manager