Updating to include changing of z-index when dragging shapes.