Improve previous commit: don't show not yet selected tab