adding template for histagram