update show caret only when menu item has children