Update popup content properly