this view appears to be doing two completely different things over two completely different sets of documents. should it be two views?