added dragging vertices and drawing polygons