changed voting to voting in ajax