Replace wiresexposed var by panel_open