Add file loading functionality to model dialog