add tabs when recreating popups