fix all the AJAX