fixes html formatting