add all the template elements