adding ajax to voting