Remove duplicate of the template html code