html template re-structure