adjust the location of the popup window