tracking documents on a per window basis