fixed conditions of adding filepaths to edittarget