AJAX tabs assignment