finish user edit update index and delete