update non-js field when changing page