improve html, remove dead code