change selection when popup prev/next clicked