Refactor openVoting()