use a hook to init the menu provider