copied update() method from HeatMapView