Generally okay. Some bugs. Might be better to separate makeTabs out from attachUI... but maybe not