updated table editing functionality