re-added clicks for polygons
update the stacking order for objects so active/clicked objects are in front
fixed a segfault when adding polygons caused by updating the scene from a non-Qt thread