change from type to method on DocumentObserver