added up vote and down vote functionality