fix the heatmap and side visualizationsand removed template code