added ajax to events form