Update ajax page code