update tab index problem