change document title when changing collection