Avoiding interdependencies introduced by lazy load of the HTML

I changed the way we summon the tabs and overlying dialogs in such a way there is no need for global functions or *view to main app* nor *view to view* interdependencies.