[relations] Save relation name from add dialog.
And some smaller leftover cleanup