I haven't tested this here, but don't we need to close the popup instead and reload the main window?