add legend for dm colours

possible bug while in graph mode, labels don't change when a new
conflict is selected