cleanup and MergeTabs, tabnew mapping ,tn