adding click event for vote icon