added some vote functionality