Working dynamic menu and menu factory.