updated templates with a new data model, fixed crashes, sensors, settings, css