Switch to internal panel API for setting up menuitems