Update BookManager to add information about the active trail to elements and their children recursively.