Better way to show the file name, fixing bug where the document properties and the password prompt could be open at the same time