Renamed parentId to parent.
Renamed register() to menu().
Separated id from item properties.