move input html to template