adding template definition and html template