build html template