Refactored editable table code.