using templates for html
improved templates