calendar and document-linking fixes