1) [Bug Fix] Get candidateType from the table
2) Remove console.logs