modified to include add election and add candidate