center popup after screen size change