using templates for html