fix various issues with menu items, allow sorting and adding new nested menu items even with non-persisted parents