Finally, editing and adding elections is working