add data for edit mode