Dynamically set rangeSelector