updating file paths for links