reduce html complexity