fixing html to valid code