change the size of the popup window and set the initial location of it.