Warning fixes in ui, getZOrder -> getLocalZOrder