Styling Popup and adding pan