Attach menu items to correct parent to reduce/fix memory leaks