improved HTML report and tag handling