unique view now uses groups as well as documents