setting up ability to edit and delete polygons