changes MenuItem to CustomComponent for future modifications