update title bar when loading file