Upgrade to more recent treeview. Moved splitterinit.js functionality inside main.js. Load main.js earlier, set the layout ASAP on load.