Added positioning for pop-up panel