use resources, fix menu flyout