completed the update and delete of todo items