Added some backend logic for myevents page