Dynamically generate menu bar