corrected voting logic and renamed controllers