automatically to select the newest tab when adding a tab
merge origin