Vote module refactored but not fully working