added dynamic menu and method numbering