corrects html for ul element