refactor when vote cast and poll can calculate popularity and end on its own