implement dynamic menu creation