changed close(ud.record_form) to delete