Event before save on pivot relationRender

I have subject form like this

The levels table in the form created using partial view with $this->relationRender('levels')

I want to add some logic before saving the levels

I can’t use beforeSave event model because it is only triggered when saving the subject form, not when saving levels of subject

Is there any way to do it ?