update range and mode selection