changed how menu is defined in control