added support for rotating polygons, need dragging and dropping implemented next