edit class relation