added thermostat stuff and logout button