A few adjustments to obtaining specs and closing doc preview
Alert div when no documents match user's filters
Setting up generate collection function