Refactor empty <td>, rename messages to errorMessages