centre popup window issue fix