Dealing with popups moving out of view