Added deleting subcontainers, but it only works when you load the polygons in.(not sure why it doesn't work when you add containers without reloading)