only create one tab to prevent browser closing