Fix problems related to Z-index of popup windows

As per comment/request in (ticket)[https://svnweb.cern.ch/trac/CMSDMWM/ticket/4299], please consider this PR for the coming CMSWEB upgrade.