popup window improvement