updating events ajax