Wiring for new 'document stats' page