improved infinite test
unified z-index
last window open now shows over the rest