cleanup menucode