Added a populateui when file is changed