Added election edit functions