fire event when file is loaded