YH-177: Added recursive template to construct menu