updated method to map through menu items