remember zindex and use a loading indicator