remove unused menus from detail activities