use templating for html creation