Made voting page view and added vote functionality