rebuild window when loading a new manifest