Adjust popup window