Live update subMenu if its content changed
Fixes a memory leak where subMenu was never destroy