improve ui of debug.html