Dynamically build menu items when the action link is clicked.