closing polygons frontend side to store paths already closed