Move html to template