update range selection