change tag to template in many APIs, optimize the template load performance