loadData when inserting