[IM] Relation hooks
[IM] Updating relation type