Add thead and tbody to index template