cleanup internals of menus