edit table almost works