persist line color when switching