bug fix on next and prev buttons in candidateInfo