[FEATURE] Improve modal for creating relation

Change-Id: I08538778d2b03a28d5e1c4dba6fffbddf48450b6
Fixes: #51497