Adding table editing functionality