added Template manager