wrap package edit form in a callback