updating the popup panel