fixed nested forms
added delete function to nested forms