execute hooks before/after the action