adds assign_folio before_save callback