finish edit, update, delete