refactoring html report