Ajax update preprocessing