review methods  of create main menu

Added recursive traversal of the tree. it allows you to show menu of any nesting