Added code so that the 'Save As' window can only be opened once when the 'Save As' button is clicked multiple times.