modify events ajax