Popup functionality completed