Adding javascript to be applied for batch selection and updates so that selected batch members are included in the form