add/remove extent boxes correctly when editing extents