replace legacy reponse classes in ajax controller