revisited the AJAX on Events

Now the events update automatically.

I think there's still some kind of bug in there though.