First draft semi-working multi-tab, ref #10