added vote table functionality