automate menu link generation