first working version of the popup.