resetting polygons on page end