Added dynamically built menu code