restore selection when switching display