upgraded version of nested_form, seems to solve the 'missing live function' problem