don't add the ID class until the HTML generation