update position of popup