refactoring html report - II