adjusted position of popup