Just quick suggestion since r10, You should make the TARGET_ID same as PLAYER_ID when it comes to PVP.
Code:
elseif UnitIsFriend(Unit, TARGET_ID) then
UF[TARGET_ID].endboxtext.text:SetText(ClassificationShort["pvp"])
bgColor = {0, 0, 0}
newColorID = "black"
Just so it matches.
Just a thought.
Your outcome is below.
http://postimage.org/image/lavv3gaat/full/