Apply AJAX to update page