Add function to sync tree tab and now reading thread.