refactoring the voting html.erb