removes extra div closing tag