added the ability to add custom react components as menu items