change color for different modes