fix tabs not changing with AJAX