calling reset after color changes