added proper support for the LayoutUpdated event. 
Also disabled on demand loading of the menu layout because it generated notable delays and some weird side effects.