Refactored stupid AjaxController