Added logic to remove associations when form is deleted