update edit & index