some optimizations to the HTML