Modularize the menus, add facility to alter header elements from plugin