added field update function in preprocess page function