Fix creating new items

Just as for menus, the code to insert the new item in
the right place was dropped in refactoring.
Bring it back.

https://bugzilla.gnome.org/show_bug.cgi?id=725360