keep popup in view