added vote counts and fixed ajax