Fixes for document template pages not properly showing selected documents.