list pid for edit and new added