fix broken html tags and indentation