Update commands context when changing tab