update table callback & fix AJAX