Change redirectAjax to public