admin: administration menu fix

* Registers all subitems to the 'main.admin' menu item. (closes #1822)
what about changing the name of function `foo` to `register_item`?