update menu index