Make sure only one tab is open at a time.