reindent for structural clarity, rm extra div closing tags