Close tds in tables