finishedit,update and delete