switches to php redirect over ajax for voting