modified to call correct methods to addElection and openElection