Bug fixed for both tables

Last push may not be correct. The only remaining thing to be done on
undo/redo is clearing the redo button on any table action setting
correct table copy index.