added ajax to events