Does this work when ajax is true?