ajax controller fix