moving config loading and setDefaults from metadata view into file view