removed htmlencode entities because things are being double encoded