adding in template driven html functionality to reporting