change filename when a different file is selected