refs nearly fixed, collapsible panels nav/both ok (still need sources)
cleanup of main, app.js