Fixed table editing to use model indices instead of view.