moved tab init to main (from book main)