Use the write template url for editing forms.
Remove relationship defined twice.