added feature for thermostate in radio button