Added the functionality to have the title of the window to show the file name