moved method related to Candidate in candidate.js from adminPAge.js --Ravi