[FIX] Menu reflow logic adapted to work when menu is rendered server side
[FIX] needaction logic adapted to work with menu rendered server side