Made submenus factorized
Merge pull request #5 from mjgpy3/master

Made submenus factorized