Save the previous position of the popup window