Add AJAX to update team query