update index and elections routes