added vote functionality to all pages