Initialize the popup content properly