Move ajax logic requests to the AjaxController.