fixed various html bugs