add ability to use customized HTML template