added ajax, although it is not currently working, to the event application button