added the backend for displaying events