Refactoring and started implemented IOC in main menu