HeatMap logic and Background color changes