added vote tallying to votes controller