Add default callbacks for document: events