Fixed bugs in candidate_page view