Move HTML to template