Table Edit function Debugging