Added graphicZIndex to track history