Add method to ensure only one tab is open