popup window fixes