check if tab is opened