Fix See all documents feature

The new model broke this features since pages are not
available from the documents themselves.
Complete search document feature

We can now filter by certificate type.