vote functionality added