SSP-2354 fix inconsistency between database and ChallengeReferral model, fixed client side ui