Use AJAX layout in output()