Plenty fixups and cleanups for the Tab window