fixing html for adding new elements to existing lists