Add HTML tags thead, tbody to the templates