improve debug html format