duplicate tab handled. Close of a tab also handled