update .when plugin with past input