improved selection, selection restoration, external links