using templates to create new html