tr tag must be closed before you close the thead tag