move all HTML to templates