variable updates and tabmenu reexpansion