Now the title will be set of the main window will update everytime a new file is loaded.