update or remove note