completed - task : refactor ForeignRecordsChoosePanel
completed - task : test primary record dialog