relation editor: use a public constructor, remove UI file