add .to_i to temperature_min in view