adding up vote and down vote functionalities