js callbacks edit/create & subactions part