update title while opening file