Change document title/path when the items are selected