Finish theming popup, fix positioning variations to never escape boundaries of element