added handling of select all checkbox for choosing all resources in a collection at once in the form