reorganized file loading/preview