reinitialize the array displayed in the edit table to avoid record duplication