merged new menu code (nw)