Improve the limitation part of Menu class