first try to modernize menu system.