adding closePolygon for the initial area selection