update and remove for todo tasks