Added functionality for up vote and down vote