Now the project is an inventory manager. MainWindow creates a menu item and connects it with a function