improved html template for plot publishing