change the way AJAX works