fix table updating on edit