1) check whether state, module, label name is valid when editing 2) fix a bug so when a table cell is being edited, pressing DELETE will not delete the entire row