colored branch based on its state