Add selection to persisted state for subject viewer