Refactoring voting page