add note update functionality