factor out local files view.