restruct html template

remove dublucate html code