Use the state-name as reference in the json
Fixed bugs in callback for threshold-slider