hook for single resource edit