ajax implementation update