Add custom menus function

I added 2 functions to register and add the menu