add some optional configuration + improve html template