use render :partial with :collection in subforms, high performance improvement for very long subforms
Clean some code to avoid changing @record in partials