Working on data reloading when file is switched