update window when the file is moved