Adding The main menu and apply the functionality to load each dialog.