Put pop up at the right position