added demo mode. Also made activating an event use AJAX.