fix sidebar and tab sync