fix for language in forms

a form field with a different language should not switch
the language for the rest of the form
refactoring: extract method deleteResource() from editResource()