Overlay popup fix - previous window showing

Added loader image and made popup open dynamically