added ajax to voting