Update document behavior