Hide unwanted tabs when appropriate