let rangesArray = Object.keys(this.state.ranges).map(key => this.state.ranges[key]);