update style to use class instead of id, and each row gets its own div element.